package com.jackrain.nea.core.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface AdLimitValueGroupMapper {

    @Delete("delete from AD_LIMITVALUE_GROUP where id = #{groupId}")
    int delete(long groupid);

    @Select("select id from AD_LIMITVALUE_GROUP t where t.name='YESNO'")
    long selectYESNOId();
}
